CarModels Class Reference

#include <CarModels.h>

List of all members.

Static Public Member Functions

static void initialize ()
static osg::ref_ptr< osg::Node > returnModel (int)

Static Private Attributes

static int models [5]
static vector< osg::ref_ptr<
osg::Node > > 
node


Detailed Description

This class encapsulates the car models


Member Function Documentation

static void CarModels::initialize (   )  [static]
 

This function read the model files once and places them in the models array to be used by returnModel later. By this way a model file is only read once and all the Vehicle objects that have the same type will use the same Group with different PATs as their parents.

static osg::ref_ptr<osg::Node> CarModels::returnModel (  int   )  [static]
 

returns the models Node according to the only argument


Member Data Documentation

int CarModels::models[5] [static, private]
 

array that holds flags for each model file, if a model file is created the appropriate place in the array becomes one which is inially 0 for all models.

vector< osg::ref_ptr<osg::Node> > CarModels::node [static, private]
 

vector that holds the read models nodes whenever a new vehicle is inserted, if it is not already inserted to this vector it is done by reading the model file so later uses of the same model will simply use the same node in the vector


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:43:59 2006 by  doxygen 1.4.6-NO